home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / x3270 / unix_files / dryrun < prev    next >
Encoding:
Text File  |  2008-09-11  |  900 b   |  43 lines

  1. #! /bin/sh
  2. # Copyright 1995, 1999, 2000 by Paul Mattes.
  3. #  Permission to use, copy, modify, and distribute this software and its
  4. #  documentation for any purpose and without fee is hereby granted,
  5. #  provided that the above copyright notice appear in all copies and that
  6. #  both that copyright notice and this permission notice appear in
  7. #  supporting documentation.
  8. #
  9. # Run x3270 from the current directory
  10.  
  11. # Bomb on any error
  12. set -e
  13. d=`pwd`
  14.  
  15. # Say what you're doing
  16. set -x
  17.  
  18. # Set up the fonts
  19. mkfontdir .
  20. xset +fp $d/
  21. xset fp rehash
  22.  
  23. # Set up the dynamic library path
  24. if [ -d /usr/openwin/lib ]
  25. then  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/openwin/lib
  26. fi
  27. if [ -d /usr/ucblib ]
  28. then  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/ucblib
  29. fi
  30. export LD_LIBRARY_PATH
  31.  
  32. # Set up the PATH to include pr3287.
  33. PATH=$PATH:$d/pr3287
  34. export PATH
  35.  
  36. # Run x3270
  37. set +e
  38. ./x3270 "$@"
  39.  
  40. # Clean up
  41. xset -fp $d/
  42. xset fp rehash
  43.